<?php
use common\modules\taxonomy\models\TaxonomyCategory;

/* @var $this yii\web\View */
/* @var $model common\modules\taxonomy\models\Taxonomy */

$category = $model['category_id'];

$this->title = '更新分类项: ' . $model->name;

$categoryModel = TaxonomyCategory::findOne([
    'id' => $category
]);

$this->params['breadcrumbs'][] = [
    'label' => '分类管理',
    'url' => [
        '/taxonomy'
    ]
];
$this->params['breadcrumbs'][] = [
    'label' => $categoryModel['name'],
    'url' => [
        '/taxonomy/taxonomy',
        'category' => $category
    ]
];
$this->params['breadcrumbs'][] = $this->title;

?>
<div class="taxonomy-update">

    <?=$this->render('_form', ['model' => $model,'category' => $category])?>

</div>
